package com.yuyou.train.lesson.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.train.service.api.lesson.dto.LessonClassDetailDTO;
import com.yuyou.train.service.api.lesson.dto.LessonClassPageDTO;
import com.yuyou.train.service.api.lesson.entity.LessonClass;
import com.yuyou.train.util.bean.Pagination;

@Mapper
public interface LessonClassMapper {
    int deleteByPrimaryKey(String id);

    int insert(LessonClass record);

    LessonClass selectByPrimaryKey(String id);
    
    List<LessonClass> findClass();

    int updateByPrimaryKeySelective(LessonClass record);
    
    List<LessonClassPageDTO> findLessonClassPageList(Pagination<LessonClassPageDTO> p);
    
    int findLessonClassPageCount(Pagination<LessonClassPageDTO> p);
    
    LessonClassDetailDTO selectDetail(
    		@Param(value="id") String id,
    		@Param(value="type") String type);
    
    LessonClass selectByCode(String code);

    List<LessonClass> findLessonClassByUserId(String userId);
}